package com.itbaizhan.seckill.mapper;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RabbitmqSeckillMapper {

    /**
     * 通过主键查询是否预定
     * @param houseId 房屋主键
     * @return 查询结果
     */
    Boolean selectBuyById(Long houseId);

    /**
     * 根据主键修改预定状态
     * @param houseId
     * @return
     */
    int updateBuyById(Long houseId);
}
